$(function(){
  $("#update").click(function(){
    if($("body").find("update").attr("id") == "1.0.0") {
      alert("Thank you, you use the latest version");
    } else {
      alert("There is a new version press OK to be transfer to the download site");
      window.open("http://www.th3g3ek.com", '_blank');
    }
  });
});